add require js support on 1.0 branche