trying to get the external js files working properly