splitting js up