Fix bugs in gem and allow for css scripts