js constructor notes