Renamed preferences to config
Updated template directory structure
Do not use jquery shortcut?