Updated the JS lib to use the new V3 library.
Update layout.haml

Change the default value for the client variable to not be a string.
Merge pull request #12 from hex337/js-v3-api

Updated the JS lib to use the new V3 library.