You need api enable JavaScript api main this application.