fix js bind to elem, add loader