init javascript readRecord