(refs #337)Fix JavaScript not found problem in JBoss/WildFly