Fixed the place where prototypes are inserted in dom