Fix bug with statis JS