consolidated javascript