Moved javascript in ask.js