Added main js template and validate plugin