removed prototypejs and rewrote all to poor js