frontend add to cart jshinted and coding standards