Loading popup not hiding

Loading doesn't hide when show is called more than once before hide is called.
An example can be found here: http://cdpn.io/ECubl