Debugged registration, etc. and moved scripts to coffeescript.