fix double JS error in dev and use thin