JS code quality make stuff reuseable