Update device.coffee

The Portrait/Landscape Detection did not work, due to the different implementation of the device manufacturers of window.orientation