js load twice problem