Organized Frontpage Code

No more CSS script in index file. No changes made to functions.