remove unused functions (i was playing..)
update file extensions: .js -> .coffee
fix bug I introduced + found issue in original