Shouldn't need the `$glyph` var at all
`$elm.find( ".glyphicon" ).toggleClass( "glyphicon-play" ).toggleClass( "glyphicon-pause" );`
Also, no comma at end of line.