Added version1 javascript