Source code clean javascript