Create javascript