app js added along with rules ref #3