Update path and path js