fixed external js issue