Update bootstrap.js

non-ctypes methods. so can support all os