added spin.js and fixed paths for asset loading.
also changed to yii2 style format for javascript.