Javascript: Now with fog