initial commit
tidied up js, added callback
changed name of callback, added info to readme