Fixed javascript plugin tests