JS changes for device width