moved action.js inclusion to the bottom