Added local js fallbacks.
Layout improvements.
Implemented new dynamic layout.