Update main.js

dynamic loading tizen apis.