camera api, added main.js