JS Initial mouse location issue fixed