problem with javascript not sure how / when this happened