messin with javascript