implemented JS csrf fix
Merge branch 'csrf_fix' of https://github.com/melodicodyssey/wdi-group-project into melodicodyssey-csrf_fix