Adding JS code