<link rel="stylesheet" href="css/autocomplete.css" type="text/css">
<script src="js/autocomplete.js"></script>
2. Fill hints and call the plugin on selected HTML element
var words = ['boat', 'bear', 'dog', 'drink', 'elephant', 'fruit'];
$(document).ready(function(){
$('#yourElement').autocomplete({
hints: words
});
});