updated javascript pin