Refactors the javascript so it's intelligently organized