Fixed issue with unnecessary javascript in the editor page