js working on local