Killed some useless js. Needs some work on returning and parsing json