fixes for aws

1. downgrading the java from 1.8 to 1.7
2. changing the SERVER.js file to the updated path