Took out unneccessary js code