normalize JS load