Fixed wrong placement of javascript function in editor config