added extra bracket to javascript tag function

a tiny update to Tyranja's tag javascript change. 
there was a bracket missing.