Start reading Function JavaScript by Michael Fogus.