updated to coffeescript 1.6.3; added optional onShow method