why js code in master