fix readystate event handler invocation
pre-compile CoffeeScript files in server