Splitting javascripts