Fixing js for contacts