Function for global js added