Bugs in JS code is corrected. Several conditional checks are added.
Rename custom.js to custom-functions.js
Added jQM themes and updated HTML code for this purpose.
Added custom settings file.
Included custom settings file in HTML code.