Added foo js file, containing some examples which are out of date but contain useful ideas