Added the Kudos javascript interface to a separate file.