Update javascript.js

Added resume downloading option for mobile device also