java script file for AMS template.