Changed module definition

Changed module definition than allows use it in RequireJS