completed javascript lab (no stretch)