Adds Javascript-backed positioning logic.