fixin bugs
trying to mess around with javascript