a consistent way to detect orientation across all platform/browsers
fix the full screen bug, clean up