problem with reference to random.js