hw2 crazy code done
have some fun with js