Make all Javascript resource references final.

Fix #29