[JS] Fixed $.meta()

I introduced this bug by my last commit.