Externalized Javascript For Easier Reading