Extracted github code to file, others.js, working on dual support