split javascript out