functions wacky

js file started