I am coding a data intense web app.
So that means I cant be possibly doing any computations on sever- computation after every event involves huge data too large to be sent
As far as your logic is concerned, you can use minification tools to make the code a bit hard to figure. This in no way shape or form completely protects your code, but just another tactic to fight back.