fixing little bug when declaring a js lib