generate js in bin folder