Add JS to navbar. Also fixed uploading pictures.