Fixing log-in drop down bug

Finally managed to get the log-in drop down working alongside my javascript home page additions.