added hack for external js