refactor SockJS options
fix background position bug in firefox