removed unneeded commas in js, that may lead to problems in older browers
removed unused use statements