Fixed really stupid bug (forgot to add js method)

What the title says. Very silly of me.