added js file
lots of stuff
removed dead file