split js into on device and external