updated backtofront.js