creating javascript