moved javascript into reslife.js