Fixing error with periods in javascript id.