Added namespacing to IIFE, moved feature test to script itself for better progressive enhancement, and updated looping method.