Fix js issue w/ Safari