polished the editor fixed some js stuff