Fixed error reporting when loading modules in JS. Added commad-line parsing to process (.getArg, .getArgFloat, .getArgInt).