Split js code