A workaround for common issues with bootstrap modal on mobile browsers