Putting JS and Java together and using adjunct to load only once JS scripts