Code formatting

Added code painter and editor config
Updated the javascript files.