JavaScript functions look like a bit working.