JavaScript: functions

By Dmitry Kabanov