split off the javascript.
split off javascript