fixing issue #3
comitting js for the fix