Extended javascript.