add js bug
remove js_trap to new file