Updated with iife
Added tab order support