minor modifications to index and appjs