Updated the editor to fix JS Bugs