JavaScript cleanup.