Js default position

Added options for configuring js default position.