Fix bug of js()

I found a similar bug like css()'s, I'm not sure this problem will occur at some other place.