Remove old JS file; load only necessary stylesheets