added grunt, static+dynamic index files, better code structure