preface javascript wrapper and some css changes