Allow !js plugin to load AMD / CMD scripts

It's very unconvinient that !js plugin can't work with any js scripts which integates AMD / CMD interface. This pull request fixes that issue.