use bower to get client libaries
added unittest because i mess up too much stuff
fixed errors that came from introducing bower