Changed array to hash and include module
fixes #1, fixes #2. javascript added and made accessible
README updated.