split the js up