updated readme
toms solution
Load code on window load