tutorial js now more modular. Added tutorial p2.