Use innerWindow as conditional comparison for appending/removing collapse class
use width calculation that holds valid for both standard browser and mobile devices
Merge pull request #49 from glasnt/sb-admin-sidebar

Use innerWindow as conditional comparison for appending/removing collapse class