updated app to appjs