Javascript mini project (for Hack Reactor interview)