added assets dir and moved inline code from index.html