updating for require js mostly