some sweet javascript, celebrate the small victories