Clean js code