separates javascript from html *finally*