updated appright.js