Javascript loads quicker