Add jsapi to index page