playing around with javascript in eclipse