Random javascript practice exercises