Use less javascript