Add initial javascript api module code
Load jquery and the api module on the index page
Add api js to www package