removed stupid coffee shizzle

I can't get these coffee scripts, found examples using good old simple
js, so transformed it to use js