fixed JS asset bug