using local application and remote analytics js files as indicated by Jordan