javascript lab edited