Uncommented "fake code" and implemented javascript calls