javascript lab stuff