file.js: Removed some duplicate code
file.js: Removed some duplicate code

marcinlimanski/OS.js-v2,Rxswyers/OS.js,msimonin/OS.js-v2,msimonin/OS.js-v2,ellis/OS.js-v2,arduino-org/Arduino-OS,andersevenrud/OS.js-v2,msimonin/OS.js-v2,dmikey/OS.js-v2,salman-kamkoriwala/OsJsSample,salman-kamkoriwala/OsJsSample,gravityacademy/OS.js-v2,ellis/OS.js-v2,twkrol/OS.js-v2,codingang/OS.js-v2,marcinlimanski/OS.js-v2,salman-kamkoriwala/OsJsSample,arduino-org/OS.js-v2,salman-kamkoriwala/OsJsSample,dmikey/OS.js-v2,dmikey/OS.js-v2,twkrol/OS.js-v2,arduino-org/Arduino-OS,arduino-org/OS.js-v2,Rxswyers/OS.js,gravityacademy/OS.js-v2,ellis/OS.js-v2,codingang/OS.js-v2,arduino-org/Arduino-OS,ellis/OS.js-v2,twkrol/OS.js-v2,gravityacademy/OS.js-v2,Rxswyers/OS.js,Rxswyers/OS.js,msimonin/OS.js-v2,twkrol/OS.js-v2,omet-ca/omet-desktop,arduino-org/Arduino-OS,andersevenrud/OS.js-v2,arduino-org/OS.js-v2,andersevenrud/OS.js-v2,dmikey/OS.js-v2,omet-ca/omet-desktop,marcinlimanski/OS.js-v2,arduino-org/OS.js-v2,marcinlimanski/OS.js-v2,gravityacademy/OS.js-v2,ellis/OS.js-v2,omet-ca/omet-desktop,codingang/OS.js-v2,arduino-org/OS.js-v2,gravityacademy/OS.js-v2,marcinlimanski/OS.js-v2,arduino-org/Arduino-OS,dmikey/OS.js-v2,salman-kamkoriwala/OsJsSample,omet-ca/omet-desktop,codingang/OS.js-v2,msimonin/OS.js-v2,andersevenrud/OS.js-v2,codingang/OS.js-v2,andersevenrud/OS.js-v2,twkrol/OS.js-v2,Rxswyers/OS.js,omet-ca/omet-desktop