'Create a ``CustomJS`` instance from CoffeeScript code.'

@classmethod
def from_coffeescript(cls, code, args={}):

    compiled = nodejs_compile(code, lang='coffeescript', file='???')
    if ('error' in compiled):
        raise CompilationError(compiled.error)
    else:
        return cls(code=compiled.code, args=args)
