Code

Added simple js handling to popup js dialogs, not finished yet