took out main js code