Working on externalizing JS