[core] javascript engine selection

Choose the javascript engine by extension "js" instead of.
Javascript engine "rhino" is not available in some JVM vendor