Generalised variable names and separate js