Simple app while learning javascript