Added a generic log method javascript file and html file to test it