javascript exam tasks