clean javascript library