Cleaned up isotope init javascript