trying to fix javascript nug