add javascript resources & lib