Fixed small bug with javascript.: