client side code webstorm code cleanup.