initialize javascript.