added stylesheet file handling
JS file handling, better index