first step to javascript library