Fixed really stupid bug (forgot to add js method)