change to external js