better checking for setting intial range, built release js