optimizing js. delete js duble loading