moved content javascript to edit page