changed run js procedure
removed comma
added mtime checking and fixed js loading by ts problem
fixed loading problem
simplified require binding
removed unnesessary variable