spliting javascripts