Some conversion of Javascript code complete.