Minor fix

- Moved app framework setttings to earlier execution (before document
ready)