fixed JS asset bug
Merge pull request #292 from colinwren/asset-fixes

fixed JS assest bug