Added a configuration for the cakefile
Updated JS
Splitting up moloFunc into moloDefine and moloRequire