register generalized version and some JS