Sorry if this fucks up anything

I was working on that during the restructure, gonna fix it later.
Fixed some things, inserted test values, and it's actually working now.

- amount and scope have test values now
- fixed switch
- made ajax call async to be able to return the result
Merge commit 'bb7366c26fbba67941697a6112ab49ccde746fb3'
Merge branch 'master' of https://github.com/edlongman/whileaway