updated js. dashed guide for rectlines